package com.sisgesbyte.web.managedBean.paginaweb;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import org.primefaces.model.map.DefaultMapModel;
import org.primefaces.model.map.LatLng;
import org.primefaces.model.map.MapModel;
import org.primefaces.model.map.Marker;

@ManagedBean
@ViewScoped
public class MapLocalesMBean implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private MapModel local;
	  
    @PostConstruct
    public void init() {
    	local = new DefaultMapModel();
          
        LatLng coord1 = new LatLng( -12.1824081,-76.9802011);
        LatLng coord2 = new LatLng( -12.1824081,-76.1802011);
       
          
        local.addOverlay(new Marker(coord1, "Local 1"));
        local.addOverlay(new Marker(coord2, "Local 2"));

    }
  
    public MapModel getlocal() {
        return local;
    }
	

}
